package c.h.a.k0.a.j0;

import android.view.View;
import android.view.View.OnClickListener;
import com.liuzh.deviceinfo.view.ScreenSaturationView;

/* compiled from: lambda */
public final /* synthetic */ class f implements OnClickListener {
    public final /* synthetic */ q a;

    public /* synthetic */ f(q qVar) {
        this.a = qVar;
    }

    public final void onClick(View view) {
        q qVar = this.a;
        if (!qVar.m0()) {
            ScreenSaturationView tag = qVar.W.getTag();
            ScreenSaturationView screenSaturationView = qVar.W;
            if (tag == screenSaturationView) {
                qVar.Y().finish();
                return;
            }
            if (screenSaturationView.e == -16777216) {
                screenSaturationView.e = -1;
                screenSaturationView.d.setColor(-16777216);
            } else {
                screenSaturationView.e = -16777216;
                screenSaturationView.d.setColor(-1);
            }
            screenSaturationView.invalidate();
            ScreenSaturationView screenSaturationView2 = qVar.W;
            screenSaturationView2.setTag(screenSaturationView2);
        }
    }
}
